<?
session_start();
if(isset ($_SESSION['adminability'])){
    header('location: adminform.php');
}else{
header('location: login.php');
}
session_destroy();

?>